using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations;

namespace Domain
{
    /// <summary>
    /// 物料请购单明细表
    /// </summary>
    [SugarTable("Lwp_MaterialRequisitionmx")]
    public class Lwp_MaterialRequisitionmx
    {
        [Key]
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

     

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; } = string.Empty;

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; } = string.Empty;

        /// <summary>
        /// 型号规格
        /// </summary>
        public string Spec { get; set; } = string.Empty;

        /// <summary>
        /// 主计量单位
        /// </summary>
        public string Unit { get; set; } = string.Empty;

        /// <summary>
        /// 需求日期
        /// </summary>
        public DateTime RequireDate { get; set; }

        /// <summary>
        /// 需求数量
        /// </summary>
        public int RequireQty { get; set; }

        /// <summary>
        /// 可用量
        /// </summary>
        public int AvailableQty { get; set; }

        /// <summary>
        /// 采购数量
        /// </summary>
        public int PurchaseQty { get; set; }

        /// <summary>
        /// 已订数量
        /// </summary>
        public int OrderedQty { get; set; }

        /// <summary>
        /// 采购说明
        /// </summary>
        public string PurchaseRemark { get; set; } = string.Empty;

        /// <summary>
        /// 关联主表ID
        /// </summary>
        public int MaterialRequisitionId { get; set; }
    }
}
